package com.aiobc.business.appInfo.service.impl;

import java.util.List;

import com.aiobc.business.appInfo.mapper.AppApprovalMapper;
import com.aiobc.business.appInfo.service.IAppApprovalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aiobc.business.appInfo.domain.AppApproval;


/**
 * APP审批Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-20
 */
@Service
public class AppApprovalServiceImpl extends ServiceImpl<AppApprovalMapper, AppApproval> implements IAppApprovalService {

    /**
     * 查询APP审批
     * 
     * @param approvalId APP审批主键
     * @return APP审批
     */
    @Override
    public AppApproval selectAppApprovalByApprovalId(String approvalId)
    {
        return baseMapper.selectAppApprovalByApprovalId(approvalId);
    }

    /**
     * 查询APP审批列表
     * 
     * @param appApproval APP审批
     * @return APP审批
     */
    @Override
    public List<AppApproval> selectAppApprovalList(AppApproval appApproval)
    {
        return baseMapper.selectAppApprovalList(appApproval);
    }

    /**
     * 修改APP审批
     * 
     * @param appApproval APP审批
     * @return 结果
     */
    @Override
    public int updateAppApproval(AppApproval appApproval)
    {
        return baseMapper.updateAppApproval(appApproval);
    }

    /**
     * 批量删除APP审批
     * 
     * @param approvalIds 需要删除的APP审批主键
     * @return 结果
     */
    @Override
    public int deleteAppApprovalByApprovalIds(String[] approvalIds)
    {
        return baseMapper.deleteAppApprovalByApprovalIds(approvalIds);
    }

    /**
     * 删除APP审批信息
     * 
     * @param approvalId APP审批主键
     * @return 结果
     */
    @Override
    public int deleteAppApprovalByApprovalId(String approvalId)
    {
        return baseMapper.deleteAppApprovalByApprovalId(approvalId);
    }
}
